package com.mpyy.service.everyday;

import com.mpyy.dao.everyday.FinanceDaoInter;
import com.mpyy.pojo.AdvancePayment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Description FinancesserviceImpl
 * Author yyjc
 * @Date 2022-03-18 21:27
 */
@Service
public class FinancesserviceImpl implements FinanceserviceInter {
    @Autowired
    FinanceDaoInter financeDaoInter;
    @Override
    public List<AdvancePayment> all() {
        return financeDaoInter.all();
    }

    @Override
    public List<AdvancePayment> empl(String empName, String start, String end) {
        return financeDaoInter.empl(empName,start,end);
    }

    @Override
    public List<AdvancePayment> bank(String empName, String start, String end) {
        return financeDaoInter.bank(empName,start,end);
    }
    public List<AdvancePayment> adv(){
        return financeDaoInter.adv();
    }
    public List<AdvancePayment> purReturn(String empName, String start , String end){
        return financeDaoInter.purReturn(empName,start,end);
    }
    public List<AdvancePayment> gu(){
        return financeDaoInter.gu();
    }
    @Override
    public int insertbank(String capital, String accId) {
        return financeDaoInter.insertbank(capital,accId);
    }

    @Override
    public int reducebank(String capital, String accName) {
        return financeDaoInter.reducebank(capital,accName);
    }
}
